﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace ContentManagementAdministrator
{
    class CropSize
    {
        private Size size = new Size();
        private string name = "";

        public CropSize(string name, Size size)
        {
            this.name = name;
            this.size = size;
        }

        public Size Size
        {
            get { return size; }
        }

        public override string ToString()
        {
            return string.Format("{0} ({1}x{2})", name, size.Width, size.Height);
        }

        static public IEnumerable<CropSize> GetAll()
        {
            return new CropSize[]
            {
                new CropSize("No crop", new Size()),
                new CropSize("Normal article", new Size(600, 400)),
                new CropSize("Slide", new Size(600, 230))
            }.Cast<CropSize>();
        }

    }
}
